#include<iostream>
#include "Point.h"
#include "Circle.h"
using namespace std;

void isInCircle(Circle &c,Point &p) {
    int distance =
            (c.getCenter().getX() - p.getX()) * (c.getCenter().getX() - p.getX())
            +
            (c.getCenter().getY() - p.getY()) * (c.getCenter().getY() - p.getY());
    int rDistance = c.getR() * c.getR();

    if(distance == rDistance) {
        cout<<"点在圆上"<<endl;
    }else if(distance > rDistance) {
        cout<<"点在圆外"<<endl;
    }else {
        cout<<"点在圆内"<<endl;
    }
}

int main() {
    Point p(10,0);
    Circle c;
    c.setR(10);
    c.setCenter(p);
    isInCircle(c,p);
    return 0;
}